package com.base.shiro;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.jfinal.handler.Handler;


/**
 * 
 * @author Administrator
 *
 */
public class SessionHandler extends Handler {

    public void handle(String target, HttpServletRequest request, HttpServletResponse response, boolean[] isHandled) {
        int index = target.indexOf(";jsessionid".toUpperCase());
        if (index != -1)
            target = target.substring(0, index);
        nextHandler.handle(target, request, response, isHandled);
    }
}
